﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="VideoDetail.aspx.cs" Inherits="News_VideoDetail"
    MasterPageFile="~/Main.master" %>

<%@ Import Namespace="Wsitech.Model" %>
<%@ Import Namespace="Wsitech.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>视频-联想控股官方网站</title>
    <!--news-->
    <link href="/!css/news.css" rel="stylesheet" type="text/css" />
    <!--news-->
    <script src="/!swf/mm.embed.js" type="text/javascript"></script>
    <script class="jwPlayer" type="application/swf" src="/!swf/player.swf"></script>
    <script type="text/javascript" language="javascript">
        $(function () {
            //视频播放
            $('video, audio').jmeEmbed();

            //视频段落 
            var paragraph = '<%=Paragraph %>';
            $("div.video_section ul li").eq(paragraph).addClass("sectionon").live("mouseover", function () {
                $(this).addClass("sectionon");
            }).live("mouseout", function () {
                $(this).removeClass("sectionon");
            });

            //显示视频长度
            $('#showLength').html($('#videoLength').val());
        });
    </script>
    <style type="text/css">
        video
        {
            display: block;
            width: 440px;
            height: 330px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
    <div class="main">
        <div class="main_left">
            <dl>
                <dt><a href="/News/Report.aspx?sitemapid=580998c2-76df-4da1-8807-4fab3e249758">媒体报道</a></dt>
            </dl>
            <dl>
                <dt><a href="/News/NewsList.aspx?sitemapid=9b458c66-3923-4a93-986f-eb62db2b4692">公司动态</a></dt>
            </dl>
            <dl>
                <dt><a href="/News/NewsList.aspx?sitemapid=f4d900fb-e71e-4c78-96e4-68378066640b">新闻稿</a></dt>
            </dl>
            <dl>
                <dt><a class="selected" href="/News/Video.aspx?sitemapid=f0909e9d-e4ca-4312-a994-b9e2eeaa0e8a">
                    视频</a></dt>
            </dl>
            <dl>
                <dt><a href="/News/NewTopics.aspx">公司专题</a></dt>
            </dl>
        </div>
        <div class="main_right">
            <p class="pagenavi pagenavi_news">
                <a href="../Pages/Index.aspx">首页</a> > <a href="/News/Index.aspx">新闻中心</a> >
                <asp:HyperLink ID="hlVideoIndex" runat="server">视频</asp:HyperLink>
                >
                <asp:HyperLink ID="hlVideo" runat="server"></asp:HyperLink></p>
            <%if (Info != null)
              {
            %>
            <p class="title_big news_title video_magrinb">
                <%=Info.Title %></p>
            <%if (Info.SubTitle != "")
              { 
            %>
            <p class="subtitle">
                <%="—— "+Info.SubTitle %>
            </p>
            <%
              } %>
            <p class="video_time">
                来源：<%=Info.Author %><span>播出时间：<%=Info.PublishTime.ToString("yyyy-MM-dd") %></span><span>时长：<label
                    id="showLength">时长读取失败</label></span></p>
            <%IList<AttachInfo> list = AttachInfoBLL.Instance.GetActiveListByInfoId(Info.TextInfoId); %>
            <div class="video_flash">
                <div class="videoplayer">
                    <%if (list.Count > Paragraph)
                      {
                    %>
                    <input type="hidden" value="<%=list[Paragraph].ContentLength %>" id="videoLength" />
                    <video poster="<%=AttachInfoBLL.Instance.GetVideoCoverPath(list[Paragraph].SourcePath)%>"
                        controls="controls" <%=Request["paragraph"]!=null?"autoplay='true'":""%> preload="auto">
                        <source src="<%=list[Paragraph].SourcePath %>" />
                    </video>
                    <%
                      } %>
                </div>
                <p class="fr video_intro">
                    视频介绍：<br />
                    <%=Info.Content %>
                </p>
                <p class="clear">
                </p>
            </div>
            <div class="video_section">
                <p>
                    视频列表<span>共<%=list.Count %>段</span></p>
                <ul>
                    <%for (int index = 1; index <= list.Count; index++)
                      {
                    %>
                    <a href='<%=string.Format("VideoDetail.aspx?tid={0}&paragraph={1}",Info.TextInfoId,index) %>'>
                        <li>第<%=index %>段</li></a>
                    <%
                      } %>
                </ul>
                <div class="clear">
                </div>
            </div>
            <p class="video_related">
                相关视频</p>
            <div class="video_list">
                <ul>
                    <asp:Repeater runat="server" ID="repRelated">
                        <ItemTemplate>
                            <li <%#(Container.ItemIndex+1)%4==0?"class='nomarginr'":"" %>>
                                <p>
                                    <a href="/News/VideoDetail.aspx?tid=<%#(Container.DataItem as TextInfo).TextInfoId %>">
                                        <img src="<%#AttachInfoBLL.Instance.GetFirstVideoCover((Container.DataItem as TextInfo).TextInfoId) %>" /><span><img
                                            src="/!images/video_play.png" /></span></a></p>
                                <p class="video_title">
                                    <a href="/News/VideoDetail.aspx?tid=<%#(Container.DataItem as TextInfo).TextInfoId %>"
                                        title="<%#(Container.DataItem as TextInfo).Title %>">
                                        <%#TextInfoBLL.Instance.CutString((Container.DataItem as TextInfo).Title, 27, "...")%>
                                    </a>
                                </p>
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                    <%--<li>
                        <p>
                            <a href="">
                                <img src="/!images/video_pic1.jpg" /><span><img src="/!images/video_play.png" /></span></a></p>
                        <p class="video_title">
                            <a href="">柳传志“布道”20名成都CEO当学生</a></p>
                    </li>
                    <li>
                        <p>
                            <a href="">
                                <img src="/!images/video_pic1.jpg" /><span><img src="/!images/video_play.png" /></span></a></p>
                        <p class="video_title">
                            <a href="">柳传志“布道”20名成都CEO当学生</a></p>
                    </li>
                    <li class="nomarginr">
                        <p>
                            <a href="">
                                <img src="/!images/video_pic1.jpg" /><span><img src="/!images/video_play.png" /></span></a></p>
                        <p class="video_title">
                            <a href="">柳传志“布道”20名成都CEO当学生</a></p>
                    </li>--%>
                </ul>
            </div>
            <p class="clear">
            </p>
            <%
              } %>
        </div>
        <p class="clear">
        </p>
    </div>
</asp:Content>
